// tabBarComponent/tabBar.js
const app = getApp()

Component({

  /**
   * 组件的属性列表
   */
  properties: {
    tabbar: {
      type: Object,
      value: {
        'color': '#ff7e7a',
        'selectedColor': '#48bafb',
        'list': [
          {
            'pagePath': '/pages/location/location',
            'text': '打卡',
            'isDaka': true,
            'iconPath': 'icon/location.png',
            'selectedIconPath': 'icon/location-h.png'
          },
          {
            'pagePath': '/pages/index/index',
            'text': '首页',
            'isSpecial': true,
            'iconPath': 'icon/index.png',
            'selectedIconPath': 'icon/index-h.png'
          },
          {
            'pagePath': '/pages/home/home',
            'text': '我',
            'iconPath': 'icon/home.png',
            'selectedIconPath': 'icon/home-h.png'
          }
        ]
      }
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    isIphoneX: app.globalData.systemInfo.model.includes('iPhone X'),
    isDaka: app.isDaka(),
    isLogin: app.globalData.isLogin()
  },

  /**
   * 组件的方法列表
   */
  methods: {

  }
})
